<!-- 导航栏 -->
<nav class="navbar">
    <div class="container mx-auto px-4 py-3 flex justify-between items-center">
        <a href="index.html" class="logo">
            <img src="{{static_url}}/img/logo.png" alt="{{frag.CompanyName}}" class="h-12">
        </a>
        <div class="hidden md:flex items-center space-x-8 nav">
            {{if nav.length>0}}
                {{each nav}}
                    {{if $value.status == 0}}
                        {{if $value.pinyin == 'home'}}
                            <a href="/" class="text-primary-600">首页</a>
                        {{else}}
                            {{if $value.type==0}}
                            <a href="{{$value.path}}/index.html" class="hover:text-primary-600"
                                title="{{$value.name}}">{{$value.name}}</a>
                            {{else}}
                            <a href="{{$value.path}}/page.html" class="hover:text-primary-600" title="{{$value.name}}">{{$value.name}}
                            </a>
                            {{/if}}
                        {{/if}}
                    {{/if}}
                {{/each}}
            {{/if}}

            <div class="flex items-center">
                <span class="text-primary-600 hover:text-primary-700 cursor-pointer ignore"
                    onclick="setLange('chinese_simplified')">中文</span>
                <span class="mx-2 text-gray-400">|</span>
                <span class="text-primary-600 hover:text-primary-700 cursor-pointer"
                    onclick="setLange('english')">English</span>
            </div>
        </div>
        <button class="md:hidden text-gray-600">
            <i class="fas fa-bars text-2xl"></i>
        </button>
        <div class="md:hidden flex items-center space-x-4">
            <div class="flex items-center">
                <span class="text-primary-600 hover:text-primary-700 cursor-pointer ignore"
                    onclick="setLange('chinese_simplified')">中文</span>
                <span class="mx-2 text-gray-400">|</span>
                <span class="text-primary-600 hover:text-primary-700 cursor-pointer"
                    onclick="setLange('english')">English</span>
            </div>
        </div>
    </div>
</nav>